html, body {
	font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

header a {
    display: block;
    margin-top: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

.menu-bar {
    background-color: #333; 
    text-align: center;
	padding-bottom: 16px;
}

.menu-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-bar li {
    display: inline-block;
    margin-right: 20px; 
}

.menu-bar a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
}

.post-grid {
    display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding: 20px;
}

.post-grid a {
    color: #777;
    font-weight: bold;
    text-decoration: none; 
    transition: transform 0.3s ease-in-out;
}

.post-preview {
  position: relative;
  overflow: hidden;
  background-color: #000;
  color: #fff;
  height: 300px; 
}

.post-preview img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.post-preview h2, .post-preview p {
  position: relative;
  z-index: 2;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  margin: 0;
  padding: 8px;
}

.post-preview h2 {
  text-transform: uppercase;
}

.post-preview a:hover {
  background-color: black;
  color: white;
}

/* Default layout: text at the bottom */
.post-preview {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.single-post {
    max-width: 800px; 
    width: 80%;
    margin: 0 auto; 
    text-align: justify; 
    padding: 20px;
    border: 0px solid #ddd;
    border-radius: 5px;
    overflow: hidden; 
    margin-bottom: 15px;
}

.single-post-poster {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.single-post-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.single-post img {
    width: 100%;
    max-height: 50%; 
    object-fit: cover; 
    border-radius: 15px;
}

.single-post p {
    margin-bottom: 15px;
    line-height: 1.9;
    font-size: 20px; 
}

.single-post ul {
    line-height: 1.9; 
    font-size: 20px;
}

.single-post li {
    line-height: 1.9;
    font-size: 20px; 
}

.single-post h1 {
    margin-top: 10px;
    font-size: 2em;
    text-transform: uppercase; 
}

.single-post h2 {
    margin-top: 30px;
    font-size: 1.8em; 
}

.single-post h3 {
    margin-top: 20px;
    font-size: 1.6em;
}

 .single-post a {
    color: #473e80;
    font-weight: bold;
    text-decoration: none; 
    transition: text-decoration 0.5s ease-in-out; 
}

.single-post a:hover {
    text-decoration: underline; 
}

.date {
    color: grey;
}

.single-post nav {
    color: grey;
	margin-top: 80px;
}

.single-post nav a {
    color: grey;
}

.single-post .maintain {
    background-color: gold;
}

.quote {
    border-left: 2px solid #333; 
    padding-left: 10px; 
    font-style: italic; 
    margin-top: 15px;
}

.embedded-video {
    display: block;
    margin: 20px auto;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.comments-section {
    margin-top: 40px;
    padding: 20px;
}

.comments-section h2 {
    color: #333;
}

.comments-section form {
    margin-top: 10px;
}

.comments-section label {
    display: block;
    margin-bottom: 5px;
}

.comments-section textarea {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
}

.comments-section input[type="submit"] {
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
}

.existing-comments {
    margin-top: 20px;
}

.comment-result {
    color: #473e80;
} 

.comment {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 50px;
}

.comment strong {
    color: #333;
}

.comment-date {
    color: #777;
}

.social-links {
    width: 100%;
    margin-top: 20px;
}

.social-link {
    display: inline-block;
    margin-right: 10px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 8px 12px;
    border: 2px solid #333;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.social-link:hover {
    background-color: #333;
    color: #fff;
}

footer {
    background-color: #fff;
    text-align: center;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
    color: grey;
    border-top: 1px solid #ccc;
    padding: 40px;
    margin-top: 100px;
}

footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

footer li {
    display: block;
    margin-right: 20px; 
}

footer a {
    display: block;
    margin-top: 10px;
    text-decoration: none;
    font-weight: bold;
    color: grey;
}

.novel-post {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.novel-cover {
    padding: 20px;
    overflow: hidden;
}

.novel-cover img {
    width: 100%;
    object-position: top;
    object-fit: cover;
}

.novel-details {
    padding: 20px;
}

.novel-title {
    font-size: 2em;
	font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.novel-catchphrase {
    font-style: italic;
    color: #555;
    margin-bottom: 10px;
}

.novel-description {
    color: #333;
    line-height: 1.6;
}

.buy-links {
    width: 100%;
    margin-top: 20px;
}

.buy-link {
    display: inline-block;
    margin-right: 10px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 8px 12px;
    border: 2px solid #333;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.buy-link:hover {
    background-color: #333;
    color: #fff;
}

.button-tool {
    display: inline-block;
    padding: 10px 20px;
    background-color: #c4a7f8;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.button-tool:hover {
    background-color: #8c33df;
}

.comic-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px;
    align-items: center;
}

.comic-grid a {
    font-weight: bold;
    text-decoration: none;
}

.comic-preview {
    width: 80%;
    min-height: 10em;
    padding: 40px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    margin: auto;
}

.comic-preview:hover {
    transform: scale(1.02);
}

.comic-preview h2 {
    color: #fff;
    margin-top: 10px;
    font-size: 1.5em;
    text-transform: uppercase;
}

.comic-preview a {
    display: block;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

@media (max-width: 850px) {
    .post-grid {
        grid-template-columns: 1fr;
    }

	footer {
		grid-template-columns: 1fr;
	}

    .single-post {
        max-width: 100%;
        padding: 2px;
    }
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Ensures clicks pass through the canvas */
    z-index: 1;
}
